# TODO 获取键值
dict1 = {'name':'张三','age':25,'job':'teacher'}

# 遍历字典中所有的key
for i in dict1.keys():
    print(i)

for i in dict1:
    print(i)
# 遍历字典中所有的value
for i in dict1.values():
    print(i)

# 遍历字典中所有的键值对
for i in dict1.items():
    print(i)
